package com.ehome.poct.core.controller;

import com.ehome.poct.core.api.dto.order.TestOrderCheckRecordDTO;
import com.ehome.poct.core.api.virtual.TestOrderCheckRecordService;
import com.ehome.poct.core.api.vo.order.TestOrderCheckRecordVO;
import com.ehome.web.controller.AbstractBaseController;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 检测订单检测记录控制器
 *
 * @author muqiu
 * @Date 2022-10-11 13:41
 */
@Slf4j
@Api(tags = "检测订单检测记录")
@RestController
@RequestMapping("/orderCheckRecord")
@RequiredArgsConstructor
public class TestOrderCheckRecordController extends AbstractBaseController<TestOrderCheckRecordVO, TestOrderCheckRecordDTO> {

    private final TestOrderCheckRecordService checkRecordService;

    @ApiOperation("更新记录备注")
    @ApiOperationSupport(author = "wyc")
    @PostMapping("/remark/{orderNo}/{type}")
    public void updateRemark(@PathVariable String orderNo, @PathVariable Integer type) {
        checkRecordService.updateRemark(orderNo, type);
    }

}
